package com.video.videos.domain.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("分页查询参数")
public class QueryReplyDto {

    @ApiModelProperty("页码")
    private Integer page;

    @ApiModelProperty("每页条数")
    private Integer pageSize;

    @ApiModelProperty("每页条数")
    private Long CommentId;

    public void validateParams() {
        if(page == null) {
            this.page = 1;
        }
        if(pageSize == null) {
            this.pageSize = 10;
        }
    }
}
